import React from 'react'
import './style.scss'
import {NavBar} from 'antd-mobile'
import { useNavigate } from 'umi'
export default function index(props: {title: string}) {
  const navigate = useNavigate();
  return (
    <div className='common-head'>
       <NavBar onBack={() => {
        navigate(-1)
       }}>{props.title}</NavBar>
    </div>
  )
}
